<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:decorate template="/resources/template/template2.xhtml">
	<ui:define name="titulo">
	Enviar Arquivo
	</ui:define>


	<ui:define name="centro">
		<h:form id="frmUpload" enctype="multipart/form-data" >
			<p:growl id="messages" showDetail="true" />
			<p:panel id="pnlUpload" header="Upload" style="margin-bottom:10px; ">

				<h:panelGrid columns="2">

					<h:outputText value="Enviar Arquivo:" />

					<p:fileUpload fileUploadListener="#{uploadBean.handleFileUpload}"
						mode="advanced" update="frmUpload" sizeLimit="5242880"
						allowTypes="/(\.|\/)(gif|jpe?g|png)$/" label="Selecionar"
						uploadLabel="Enviar" cancelLabel="Cancelar" style="width: auto; min-width: 300px;" />
				</h:panelGrid>
			</p:panel>
		</h:form>

	</ui:define>

</ui:decorate>

</html>